package com.cj.stock.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @Author cheng jun
 * @Description:
 * @Date 2021/7/25 17:50
 */
@Data
@TableName(value = "stock")
public class Stock {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private long id;

    /**
     * 商品id
     */
    @TableField(value = "commodity_id")
    private String commodityId;

    /**
     * 商品名称
     */
    @TableField(value = "commodity_name")
    private String commodityName;

    /**
     * 库存
     */
    @TableField(value = "num")
    private long num;

    /**
     * 临时库存
     */
    @TableField(value = "lock_num")
    private long lockNum;


    /**
     * 创建日期
     */
    @TableField(value = "creation_time")
    private Date creationTime;

    /**
     * 修改日期
     */
    @TableField(value = "update_time")
    private Date updateTime;
}
